// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_SEC_ROLE
// * CreateDate    : 2014-06-05 18:30:41
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:41
// * LastChanger   : 2014-06-05 18:30:41
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class SecRoleTable : TableInfo
    {
		public const string C_TableName = "SEC_ROLE";
		
		public const string C_ROLE_ID = "ROLE_ID";
		public const string C_PARENT_ID = "PARENT_ID";
		public const string C_ROLE_NAME = "ROLE_NAME";
		public const string C_ROLE_TYPE = "ROLE_TYPE";
		public const string C_ROLE_CATEGORY = "ROLE_CATEGORY";
		public const string C_EXTERNAL_USER_ROLE = "EXTERNAL_USER_ROLE";
		public const string C_REMARK = "REMARK";
		public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
		public const string C_LAST_MODIFIED_TIME = "LAST_MODIFIED_TIME";
		public const string C_POSITION_ID = "POSITION_ID";
		
		public SecRoleTable()
        {
            _tableName = "SEC_ROLE";
        }
		
		protected static SecRoleTable _current;
        public static SecRoleTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new SecRoleTable();

            _current.Add(C_ROLE_ID, new ColumnInfo(C_ROLE_ID,"RoleId", true, typeof(string)));
            _current.Add(C_PARENT_ID, new ColumnInfo(C_PARENT_ID,"ParentId", false, typeof(string)));
            _current.Add(C_ROLE_NAME, new ColumnInfo(C_ROLE_NAME,"RoleName", false, typeof(string)));
            _current.Add(C_ROLE_TYPE, new ColumnInfo(C_ROLE_TYPE,"RoleType", false, typeof(string)));
            _current.Add(C_ROLE_CATEGORY, new ColumnInfo(C_ROLE_CATEGORY,"RoleCategory", false, typeof(decimal)));
            _current.Add(C_EXTERNAL_USER_ROLE, new ColumnInfo(C_EXTERNAL_USER_ROLE,"ExternalUserRole", false, typeof(decimal)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK,"Remark", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY,"LastModifiedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_TIME, new ColumnInfo(C_LAST_MODIFIED_TIME,"LastModifiedTime", false, typeof(DateTime)));
            _current.Add(C_POSITION_ID, new ColumnInfo(C_POSITION_ID,"PositionId", false, typeof(string)));
			
		}
		
		public ColumnInfo ROLE_ID
        {
            get { return this[C_ROLE_ID]; }
        }
		
		public ColumnInfo PARENT_ID
        {
            get { return this[C_PARENT_ID]; }
        }
		
		public ColumnInfo ROLE_NAME
        {
            get { return this[C_ROLE_NAME]; }
        }
		
		public ColumnInfo ROLE_TYPE
        {
            get { return this[C_ROLE_TYPE]; }
        }
		
		public ColumnInfo ROLE_CATEGORY
        {
            get { return this[C_ROLE_CATEGORY]; }
        }
		
		public ColumnInfo EXTERNAL_USER_ROLE
        {
            get { return this[C_EXTERNAL_USER_ROLE]; }
        }
		
		public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }
		
		public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }
		
		public ColumnInfo LAST_MODIFIED_TIME
        {
            get { return this[C_LAST_MODIFIED_TIME]; }
        }
		
		public ColumnInfo POSITION_ID
        {
            get { return this[C_POSITION_ID]; }
        }
		
		
		
	}
}

